<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/static/index/js/vendor/jquery-2.1.1.min.js"></script>
</head>
<body>

</body>
<script>

    $(function () {

        setInterval(function(){
            var hours = new Date().getHours();
            var minutes = new Date().getMinutes();
            var seconds = new Date().getSeconds();
            if(hours<10){
                hours = '0'+hour;
            }
            if(minutes<10){
                minutes = '0'+minutes;
            }
            if(seconds<10){
                seconds = '0'+seconds;
            }
            console.log(seconds);
        },1000)


    })

</script>
</html>